package com.cares.event.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import cn.sh.cares.dao.entity.BaseEntity;

/**
 * 流程xml文件存储表
 * @author xuji
 */
@Entity
@Table(name="T_EVENT_LOB")
public class TEventLob extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 8601343296198400886L;

	@Id
	@Column(name = "LOB_ID")
	private Long lobId;	
	
	//流程ID
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EVENT_FLOW_ID", nullable = false)
	private TEventProcess eventFlowId;
 
	
	//流程xml描述文件
	@Column(name = "EVENT_XML")
	private String eventXml;
	

	public Long getLobId() {
		return lobId;
	}

	public void setLobId(Long lobId) {
		this.lobId = lobId;
	}


	public TEventProcess getEventFlowId() {
		return eventFlowId;
	}

	public void setEventFlowId(TEventProcess eventFlowId) {
		this.eventFlowId = eventFlowId;
	}

	public String getEventXml() {
		return eventXml;
	}

	public void setEventXml(String eventXml) {
		this.eventXml = eventXml;
	}

	@Override
	public Serializable getId() {
		return this.lobId;
	}

}
